package com.xiyu.service.vo.material.stock.baseVO;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import jakarta.validation.constraints.*;
import org.hibernate.validator.constraints.*;
import jakarta.validation.constraints.NotEmpty;
import org.springframework.format.annotation.DateTimeFormat;
import static com.xiyu.service.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
import java.time.LocalDateTime;

/**
 * 物资入库单 Base VO，提供给添加、修改、详细的子 VO 使用
 * 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 */
@Data
public class MaterialStockInBase {

    @Schema(description = "入库单号")
    @Size(max = 50, message = "入库单号长度不能超过50")
    private String stockInNo;

    @Schema(description = "仓库ID")
    private Long warehouseId;

    @Schema(description = "来源类型")
    @Range(max = 127, message = "来源类型最大不能超过127")
    private Integer sourceType;

    @Schema(description = "来源ID")
    private Long sourceId;

    @Schema(description = "状态")
    @Range(max = 127, message = "状态最大不能超过127")
    private Integer status;

    @Schema(description = "备注")
    @Size(max = 255, message = "备注长度不能超过255")
    private String remark;

    @Schema(description = "入库人")
    private Long stockInClerkId;

    @Schema(description = "来源单据编号")
    @Size(max = 50, message = "来源单据编号长度不能超过50")
    private String sourceNo;

}
